package com.xdr.core.dao;

import java.util.List;

import com.xdr.core.model.BaseEntity;

/**
 * Definition for common methods for all entities.
 * 
 * @author bogdan.pop
 * 
 * @param <T>
 */
public interface EntityJpaDao<T extends BaseEntity> {

	T findOne(final Long id);

	List<T> findAll();

	Long save(final T entity);

	void update(final T entity);

	void delete(final T entity);


}
